<template >
  <h1>首页</h1>
  <!-- <div class="common-layout">
    <el-container>
      <el-header>看我</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
      </el-container>
    </el-container>
  </div> -->
  <el-button type="primary" loading>管理员数量:{{ adminer }}</el-button>
  <el-button type="primary" loading>商品数量:{{ goods }}</el-button>
</template>
<script setup lang="ts">

import { ref } from 'vue'
import {lookAdminer,lookProject  } from '../Api/statistic'

let adminer = ref(0);
let goods = ref(0);

setTimeout(() => {
  
  lookAdminer().then((r) => {
    console.log(r.data);
    adminer.value = r.data.data;
    
  })

  lookProject().then((r) => {
    console.log(r.data);
    goods.value = r.data.data;

  })
}, 1000);

</script>

<style scoped lang="scss">
// .common-layout {
//   height: 800px;
// }

</style>